package JSPBasicGrammar.mysql06.driver;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;


public class MysqlDriver {

	public static Connection con = null;

	public static boolean Driver() {
		try {
			Class.forName("com.mysql.jdbc.Driver");
			con = DriverManager.getConnection("jdbc:mysql://localhost:3306/servlet", "root", "root");
		} catch (SQLException | ClassNotFoundException e) {

			e.printStackTrace();
		}
		if (con != null) {
			return true;
		} else {
			return false;
		}
	}

}
